package com.jerry.boot.admin.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"com.jerry.db", "com.jerry.frame", "com.jerry.boot.admin.api"})
@MapperScan("com.jerry.db.dao")
@EnableTransactionManagement// 启注解事务管理，等同于xml配置方式的 <tx:annotation-driven />
@EnableScheduling//启用定时
public class FrontApplication {

    public static void main(String[] args) {

        SpringApplication.run(FrontApplication.class, args);
    }

}
